<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="root"></div>
    <div id="app"></div>
    <script crossorigin src="https://unpkg.com/react@18/umd/react.development.js"></script>
    <script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"></script>
    <script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
    <script type="text/babel">
        //创建根节点
      const root = ReactDOM.createRoot(document.querySelector('#root'));
      root.render(<h2>hello world</h2>);
      //创建app节点
      const app = ReactDOM.createRoot(document.querySelector("#app"));
      app.render(<h2>我是陈钦，我最强</h2>)

     </script>

</body>

</html>